import io.kiki.stack.netty.Server;
import io.kiki.stack.netty.processor.AsyncContext;
import io.kiki.stack.netty.processor.BizContext;
import io.kiki.stack.netty.userProcessor.AsyncUserProcessor;

public class S {
    public static void main(String[] args) {
        Server server = new Server(8080, true);
        System.out.println(server);
        server.registerUserProcessor(new AsyncUserProcessor<String>() {
            @Override
            public void asyncHandleRequest(BizContext bizContext, AsyncContext asyncContext, String request) {

            }

            @Override
            public String interest() {
                return AsyncUserProcessor.class.getName();
            }
        });
    }
}
